package ldh.im.rpc.codec;

public interface ObjectCodec<S> {

    <T>void encode(S byteBuf, T data);

    <T>T decode(S byteBuf, Class<T> clazz);
}
